layui.use(['jquery', 'my_form', 'form', 'base64'], function () {
    var $ = layui.jquery,
        my_form = layui.my_form,
        form = layui.form,
        base64 = layui.base64;
    var _form = $('form[role="form"]');
    //监听提交
    form.on('submit(form_submit)', function (data) {
        let options = {
            data: {data: base64.encode(my_form.stringify(data.field))},
            method: 'post',
            url: Config.link_apply,
        }
        my_form.request(options, function (ret) {
            // console.log(ret);
        }, function (ret) {
            console.log(ret);
        });
        return false;
    });
});
